{% extends "endo/base.html" %}
{% block header %}{{ block.super }} | Endorsements | {{ endorsement.company }}{% endblock %}

{% block article %}
    <h6><a href="{% url cm_s_main %}">Home</a> &raquo; <a href="{% url endo_main %}">Endorsements</a> &raquo;</h6>
	<div class="article">
	    <div class="mod highlight">
	    	<p>
                {{ endorsement.endorsement|safe }}
            </p>
            <p>
                &mdash; {{ endorsement.person }} <a href="{{ endorsement.company_url }}">{{ endorsement.company }}</a>
            </p>
		</div>
		
		{% if projects %}
			<h2>Projects with this client</h2>
	        {% for project in projects %}
	        <div class="section2" id="project-{{ project.slug }}">
	            <div class="header"><h3><a href="{{ project.get_absolute_url }}">{{ project.title }}</a></h3></div>
	            <div>
	                {% if project.med_image %}<p><img class="left" src="{{ project.med_image.url }}" alt="{{ project.title }}"></p>{% endif %}
	                {{ project.summary|safe }}
	            </div>
	        </div>
	        <hr>
	        {% endfor %}
        {% endif %}
	    {% include "includes/call_to_action.html" %}
	</div>
{% endblock %}